//
//  ByModelOrderDetail.m
//  oc_knowledge
//
//  Created by mc on 17/1/19.
//  Copyright © 2017年 com.itboye. All rights reserved.
//

#import "ByModelOrderDetail.h"
@implementation ByModelOrderDetailAddress
-(void)setAttributes:(NSDictionary *)jsonDic{
    [super setAttributes:jsonDic];
}
@end



@implementation ByModelOrderDetail
-(void)setAttributes:(NSDictionary *)jsonDic{
    [super setAttributes:jsonDic];
    _order_id = jsonDic[@"id"];
    
    NSMutableArray *temp = [[NSMutableArray alloc] init];
    for (NSDictionary *dic in jsonDic[@"items"]) {
        ByModelOrderListItemProduct *model = [[ByModelOrderListItemProduct alloc] initContentWithDic:dic];
        [temp addObject:model];
    }
    self.items = [temp copy];
    self.store_logo = BOYE_PICTURE_VIEW_URL(jsonDic[@"store_logo"]);
    if (jsonDic[@"_address"] != nil) {
       _address = [[ByModelOrderDetailAddress alloc] initContentWithDic:jsonDic[@"_address"]];
    }
    
//    if (jsonDic[@"_payinfo"] != nil) {
//        _payinfo = [[ByModelOrderDetailPayInfo alloc] initContentWithDic:jsonDic[@"_payinfo"]];
//    }

}
@end

//@implementation ByModelOrderDetailPayInfo
//-(void)setAttributes:(NSDictionary *)jsonDic{
//    [super setAttributes:jsonDic];
//}
//@end
